package com.mvp.dagger.translate.mvp.contract;

import com.mvp.dagger.translate.base.OnHttpCallBack;
import com.mvp.dagger.translate.bean.TranslateResult;

import java.util.Map;

public interface MainContract {
    interface Model {
        void getTranslate(Map<String, String> names, OnHttpCallBack callBack);
    }

    interface View {
        void getTranslateSuccess(TranslateResult model);

        void getTranslateFail(String msg);
    }

    interface Presenter {
        void getTranslate(Map<String, String> names);
    }
}
